import request from '@/sheep/request';

export default {
  getAllSurname: (data) =>
    request({
      url: '/api/surname/getAllSurname',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getEmperor: (data) =>
    request({
      url: '/api/surname/getEmperor',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getHistoryToday: (data) =>
    request({
      url: '/api/surname/getHistoryToday',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getFestivalList: (data) =>
    request({
      url: '/api/surname/getFestivalList',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getStuffInfo: (data) =>
    request({
      url: '/api/surname/getStuffInfoList',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  getSurnameDetail: (data) =>
    request({
      url: '/api/surname/getSurnameDetail',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 历史的今天详情
  getHistoryDetail: (data) =>
    request({
      url: '/api/surname/getHistoryDetail',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取祭祖爱心列表
  ancestorLove: (data) =>
    request({
      url: '/api/surname/ancestorLove',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取祭祖鲜花排行
  getFlowerRank: (data) =>
    request({
      url: '/api/surname/getFlowerRank',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取祭祖鲜花列表
  getFlowerList: (data) =>
    request({
      url: '/api/surname/getFlowerList',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取祭祖评论
  getSurnameComment: (data) =>
    request({
      url: '/api/surname/getSurnameComment',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 获取4个姓氏
  getUserSurname: (data) =>
    request({
      url: '/api/surname/getUserSurname',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  // 祭祖献花
  giveFlower: (data) =>
    request({
      url: '/api/surname/giveFlower',
      method: 'GET',
      data,
      custom: {
        showLoading: false,
      },
    }),
  surnameComment: (data) =>
    request({
      url: '/api/surname/surnameComment',
      method: 'POST',
      data,
      custom: {
        showLoading: false,
      },
    }),
};